<%@ page import="com.techedge.insidetrack.Tracksession" %>



<div class="fieldcontain ${hasErrors(bean: tracksessionInstance, field: 'trackNumber', 'error')} required">
	<label for="trackNumber">
		<g:message code="tracksession.trackNumber.label" default="Track Session" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="trackNumber" pattern="${tracksessionInstance.constraints.trackNumber.matches}" required="" value="${tracksessionInstance?.trackNumber}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: tracksessionInstance, field: 'insideTrack', 'error')} required">
	<label for="insideTrack">
		<g:message code="tracksession.insideTrack.label" default="Inside Track" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="insideTrack" name="insideTrack.id" from="${com.techedge.insidetrack.Insidetrack.list()}" optionKey="id" required="" value="${tracksessionInstance?.insideTrack?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: tracksessionInstance, field: 'starTime', 'error')} required">
	<label for="starTime">
		<g:message code="tracksession.starTime.label" default="Star Time" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="starTime" precision="minute"  value="${tracksessionInstance?.starTime}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: tracksessionInstance, field: 'endTime', 'error')} required">
	<label for="endTime">
		<g:message code="tracksession.endTime.label" default="End Time" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="endTime" precision="minute"  value="${tracksessionInstance?.endTime}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: tracksessionInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="tracksession.description.label" default="Description" />
		
	</label>
	<g:textArea name="description" cols="40" rows="5" maxlength="255" value="${tracksessionInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: tracksessionInstance, field: 'hosts', 'error')} ">
	<label for="hosts">
		<g:message code="tracksession.hosts.label" default="Hosts" />
		
	</label>
	<g:select name="hosts" from="${com.techedge.insidetrack.User.list()}" multiple="multiple" optionKey="id" size="5" value="${tracksessionInstance?.hosts*.id}" class="many-to-many"/>
</div>
